package controllers.ppdruid;

import com.alibaba.druid.stat.DruidStatService;
import play.mvc.Controller;

/**
 * Created by eric on 16/5/24.
 */
public class DBStats extends Controller {
    public static void stats(String resource) {
        DruidStatService statService = DruidStatService.getInstance();
        renderJSON(statService.service("/" + resource));
    }
}
